﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeBehind="ManageRole.aspx.cs" Inherits="TuyenDungViecLam.Admin.ManageRole" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder4" runat="server">
    <div class="art-Block">
        <div class="art-Block-tl">
        </div>
        <div class="art-Block-tr">
        </div>
        <div class="art-Block-bl">
        </div>
        <div class="art-Block-br">
        </div>
        <div class="art-Block-tc">
        </div>
        <div class="art-Block-bc">
        </div>
        <div class="art-Block-cl">
        </div>
        <div class="art-Block-cr">
        </div>
        <div class="art-Block-cc">
        </div>
        <div class="art-Block-body">
            <div class="art-BlockHeader">
                <div class="art-header-tag-icon">
                    <div class="t">
                        Quản Lý Role</div>
                </div>
            </div>
            <div class="art-BlockContent">
                <div id="divCapnhat" runat="server">
                    <div>
                        <center>
                            <asp:Label ID="Label1" runat="server" Text="Label"> Role:</asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:DropDownList ID="DrlRole" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DrlRole_SelectedIndexChanged">
                            </asp:DropDownList>
                        </center>
                    </div>
                    <div>
                        <center>
                            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                <ProgressTemplate>
                                    Đang lấy dữ liệu từ server...
                                    <img src="../images/ajax-loader.gif" />&nbsp;&nbsp;
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </center>
                    </div>
                    <br />
                    <div>
                        <center>
                            <asp:GridView ID="GrvManageRole" runat="server" AutoGenerateColumns="False" GridLines="None"
                                CellPadding="4" ForeColor="#333333" AllowPaging="True" OnPageIndexChanging="GrvManageRole_PageIndexChanging"
                                OnRowCommand="GrvManageRole_RowCommand" OnRowDataBound="GrvManageRole_RowDataBound"
                                OnRowDeleting="GrvManageRole_RowDeleting">
                                <RowStyle BackColor="#EFF3FB" />
                                <Columns>
                                    <asp:TemplateField HeaderText="Active">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="cbchon" runat="server" />
                                            <asp:Label ID="Status" runat="server" Text='<%# Eval("STATUS")%>' Visible="false"></asp:Label>
                                            <asp:Label ID="lbuser" runat="server" Text='<%# Eval("USERNAME")%>' Visible="false"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="Username" DataField="UserName">
                                        <HeaderStyle Width="200px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="Xóa User khỏi Role ">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="Delete" CommandName="Delete" ImageUrl="~/images/delete-icon.png"
                                                CommandArgument='<%# Eval("USER_ID") %>' runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle CssClass="HeaderGrid"/>
                                <EditRowStyle BackColor="#2461BF" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </center>
                    </div>
                </div>
                <div id="divThongbao" runat="server" visible="false" style="text-align: center">
                    <asp:Label ID="lbThongbao" runat="server" Text="" Font-Size="24"> </asp:Label>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/CreateUser.aspx">Back</asp:HyperLink>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
